package com.sujeet.learning.misc;

import java.util.ArrayList;

public class RemovalByIndex {
	public static void main(String[] args) {
		ArrayList list = new ArrayList();
		for (int i=0; i<=10; i++) {
			list.add(i);
			System.out.println(list);
		}
		for (int i=0; i<=10; i++) {
			list.remove(i);
			System.out.println(list);
		}
		System.out.println(list);
	}
}
